package com.jin.sys.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author Jin
 * @since 2021-04-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@ToString
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String loginname;

    private String address;

    private Integer sex;

    private String phone;

    @JsonIgnore
    private String pwd;

    private Integer deptid;

    private Date hiredate;

    private Integer mgr;

    private Integer available;

    private Integer ordernum;

    /**
     * 用户类型[1: 校长 2: 院领导 3:辅导员 4:班主任 5:学生]
     */
    private Integer type;

    private String salt;
    
    
    /**
     * 领导名称
     */
    @TableField(exist=false)
    private String leadername;
    /**
     * 学院名称
     */
    @TableField(exist=false)
    private String deptname;

    /**
     * 学生所在班级
     */
    @TableField(exist=false)
    private String classes;

    /**
     * 学生所在年级
     */
    @TableField(exist=false)
    private String grade;

}
